package com.mysoft.gfyx.marketdevelop.remoteService;

import com.mysoft.framework.rpc.annotation.RemoteAction;
import com.mysoft.framework.rpc.annotation.RemoteService;

import com.mysoft.gfyx.marketdevelop.remoteService.dto.*;

import java.util.List;
import java.util.Set;

@RemoteService(appCode = "4022", businessCode = "40220902", path = "/customerPub")
public interface RemoteCustomerService {
    @RemoteAction("/getCustomerByCode")
    CustomerDto getCustomerByCode(GetCustomerRequestDto req);

    @RemoteAction("/addCustomers")
    boolean addCustomers(AddCustomersRequestDto req);

    @RemoteAction(value = "/isAdded")
    Set<String> isAdded(List<String> req);

    @RemoteAction(value = "/deleteCustomerPool")
    void deleteCustomerPool(DeleteByIdRequestDto req);

    @RemoteAction(value = "/importCustomerPool")
    ImportCustomerPoolResponseDto importCustomerPool(ImportCustomerPoolRequestDto dto);
}
